package pers.xhh.shopapi.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author wei-xhh
 * @date 2020-11-23
 */
public class DateUtils {
    public static String formatDate(Date date){
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return simpleDateFormat.format(date);
    }
}
